import request from '@/utils/request'

// 查询采购入库列表
export function listErpWarehousing(query) {
  return request({
    url: '/erp/ErpWarehousing/list',
    method: 'get',
    params: query
  })
}

// 查询采购入库详细
export function getErpWarehousing(warehousingId) {
  return request({
    url: '/erp/ErpWarehousing/' + warehousingId,
    method: 'get'
  })
}

// 新增采购入库
export function addErpWarehousing(data) {
  return request({
    url: '/erp/ErpWarehousing',
    method: 'post',
    data: data
  })
}

// 修改采购入库
export function updateErpWarehousing(data) {
  return request({
    url: '/erp/ErpWarehousing',
    method: 'put',
    data: data
  })
}

// 删除采购入库
export function delErpWarehousing(warehousingId) {
  return request({
    url: '/erp/ErpWarehousing/' + warehousingId,
    method: 'delete'
  })
}
